#include "Rp2SamplerInformation.h"

using namespace Rp2;

//---------------------------------------------------------------------------------------------------
SamplerInformation::SamplerInformation (const std::string& rkName, Type eType,
    int iTextureUnit)
    :
    m_kName(rkName)
{
    m_eType = eType;
    m_iTextureUnit = iTextureUnit;

    switch (m_eType)
    {
    case SAMPLER_1D:
        m_iDimension = 1;
        break;
    case SAMPLER_2D:
        m_iDimension = 2;
        break;
    case SAMPLER_3D:
        m_iDimension = 3;
        break;
    case SAMPLER_CUBE:
        m_iDimension = 2;
        break;
    case SAMPLER_PROJ:
        m_iDimension = 2;
        break;
    default:
        assert(false);
        m_iDimension = 0;
        break;
    }
}
//---------------------------------------------------------------------------------------------------
SamplerInformation::~SamplerInformation ()
{
}
//---------------------------------------------------------------------------------------------------
